package com.jhyspringcloud.config.pojo.entity;

public class OrderEntity {

    private Long id;
    private Long userId;
    private String name;
    private Long price;
    private Integer num;


    public OrderEntity(){}

    public OrderEntity(Long id, Long userId, String name, Long price, Integer num) {
        this.id = id;
        this.userId = userId;
        this.name = name;
        this.price = price;
        this.num = num;
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Long getUserId() {
        return userId;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Long getPrice() {
        return price;
    }

    public void setPrice(Long price) {
        this.price = price;
    }

    public Integer getNum() {
        return num;
    }

    public void setNum(Integer num) {
        this.num = num;
    }

    @Override
    public String toString() {
        final StringBuffer sb = new StringBuffer("OrderEntity{");
        sb.append("id=").append(id);
        sb.append(", userId=").append(userId);
        sb.append(", name='").append(name).append('\'');
        sb.append(", price=").append(price);
        sb.append(", num=").append(num);
        sb.append('}');
        return sb.toString();
    }
}
